package com.cert.scjp.arrays;

import java.util.Arrays;

public class ArraysDemo {

	public static void main(String[] args) {
		int[] array = {1,2,3,4,5,6,7,8,9,0};
		Arrays.sort(array);
		int index = Arrays.binarySearch(array, 5);
		System.out.println(index);
	}
	
}
